package beans;

import java.util.Vector;

public class Group {
	
	private String ID;
	
	private String name;
	// members: Vector<Person>
	private Vector members;
	// messages: Vector<Message>
	private Vector messages;
	// files: Vector <GroupFile>
	private Vector files;
	
	public Group(){
		this.members=new Vector();
		this.messages=new Vector();
		this.files=new Vector();
	}
	
	public Group(String name, Vector members, Vector messages, Vector files) {
		super();
		this.name = name;
		this.members = members;
		this.messages = messages;
		this.files=files;
	}
	
	public String getID() {
		return ID;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Vector getMembers() {
		return members;
	}
	public void setMembers(Vector members) {
		this.members = members;
	}
	public Vector getMessages() {
		return messages;
	}
	public void setMessages(Vector messages) {
		this.messages = messages;
	}
	
	public void addMember(Person member){
		this.members.addElement(member);
	}
	
	public void addMessage(Message message){
		this.messages.addElement(message);
	}
	
	public void addFile(GroupFile file){
		this.files.addElement(file);
	}

	public Vector getFiles() {
		return files;
	}

	public void setFiles(Vector files) {
		this.files = files;
	}

}
